package com.example.cardserver.service;

import com.example.cardserver.entity.User;

public interface IUserService {
    void reg(User user);
    
    User login(String code, String password);
    
    void changePassword(Integer id, String phone, String oldPassword, String newPassword);
    
    User getById(Integer id);

    User getByPhone(String phone);
    
    void changeAvatar(Integer id, String avatar);

    void getBonus(String bonus);
}
